import { ILoadMapTypeAll } from '@/common';
import { ManageCommonAPI } from '@/pages/type';
import { getSelectDataMapList, getTenantID } from '@/utils';

/** 到货验收列表搜索 */
const getDHSearchList = (loadInfo: Record<string, any>): ManageCommonAPI.ISearchList => {
  return [
    {
      name: 'applyTitle',
      placeholder: '事项名称',
      label: '事项名称',
      componentType: 'Input',
      allowClear: true,
      md: 8,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'applyCode',
      placeholder: '流水单号',
      label: '流水单号',
      componentType: 'Input',
      allowClear: true,
      md: 8,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'applyStartTime',
      placeholder: '申请',
      label: '申请',
      componentType: 'RangePicker',
      allowClear: true,
      md: 12,
      sm: 24,
      whetherSenior: false,
      searchParams: {
        fieldType: 'Date',
        fieldParam: 0,
        fieldUse: 0,
        searchType: 0,
        seq: 0,
      },
    },
  ];
};

export { getDHSearchList };
